//
//  Add_NoteViewController.m
//  SecretFolder
//
//  Created by Nikhil on 21/07/13.
//
//

#import "Add_NoteViewController.h"

@interface Add_NoteViewController ()

@end

@implementation Add_NoteViewController
{
    UITextView *mTextView;
}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationItem.title = @"Add Note";
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Save" style:UIBarButtonItemStyleDone target:self action:@selector(saveButton:)];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonSystemItemCancel target:self action:@selector(cancelButton:)];
    
    NSDictionary *size = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont fontWithName:@"Helvetica" size:17],UITextAttributeFont, nil];
    self.navigationController.navigationBar.titleTextAttributes = size;
    mTextView = [[UITextView alloc] initWithFrame:self.view.frame];
    
    mTextView.text = @"Some Text here....";
    mTextView.font = [UIFont systemFontOfSize:18.0f];
    [self.view addSubview:mTextView];
    mTextView.editable = YES;
    
    
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)saveButton:(id)sender
{
    [self dismissViewControllerAnimated:YES completion:^{}];
}
-(void)cancelButton:(id)sender
{
    [self dismissViewControllerAnimated:YES completion:^{}];
}
@end
